import request from "@/utils/request";

//新增报名表
export function addJoinForm(data) {
  return request({
    method: "POST",
    url: "/joinservice/join-form/addJoinFormByToken",
    headers: {
      "Content-Type": "application/json",
    },
    data
  }).then((res) => res.data);
}

//根据token查报名表
export function getJoinFormByToken() {
  return request({
    method: "POST",
    url: "/joinservice/join-form/getJoinFormByToken",
  }).then((res) => res.data);
}
//根据token查录取结果
export function getJoinFormStatusByToken() {
  return request({
    method: "POST",
    url: "/joinservice/join-form/getJoinFormStatusByToken",
  }).then((res) => res.data);
}
//根据token修改报名表
export function modJoinFormByToken(data) {
  return request({
    method: "PUT",
    url: "/joinservice/join-form/updateJoinFormByToken",
    data
  }).then((res) => res.data);
}

//根据token删除报名表
export function delJoinFormByToken() {
  return request({
    method: "DELETE",
    url: "/joinservice/join-form/daleteFormByToken",
  }).then((res) => res.data);
}


